package com.xianyun.site.auth.common.entity;

import com.xianyun.site.auth.common.config.system.LoginType;
import com.xianyun.site.iblog.dto.user.data.SystemUserDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Set;

/**
 * @author mac_zyj
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class SystemUser implements Serializable {

    /**
     * 用户
     */
    private SystemUserDTO innerUserInfo;

    /**
     * 权限标识集合
     */
    private Set<String> permissions;

    /**
     * 角色集合
     */
    private Set<String> roles;

    /**
     * 获取当前用户菜单集合
     */
    private Set<String> resources;

    /**
     * 登录ip
     */
    private String loginIp;

    /**
     * 登录时间
     */
    private LocalDateTime loginTime;

    /**
     * 登陆类型
     */
    private LoginType loginType;

    /**
     * 用户密码
     */
    private String password;

}
